﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StackTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Stack zq = new Stack();
            zq.Push("赚了10元");
            zq.Push("赚了20元");
            zq.Push("赚了50元");
            zq.Push("赚了100元");
            zq.Push("赚了300元");
            Console.WriteLine("总利润：");
            while (zq.Count != 0)
            {
                Console.WriteLine(zq.Pop());
            }
        }
    }
}